package com.zwz.dao;

import com.zwz.bean.RootLoginInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface RootLoginDao {
    /**
     * 登录
     *
     * @param login
     * @return
     */
    @Select("select id from root_login where username = #{username} and password = #{password}")
    Integer login(RootLoginInfo login);
}
